all files / lib/ warehouse.js

33.33% Statements 1/3
100% Branches 0/0
0% Functions 0/1
33.33% Lines 1/3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28                                                      
module.exports = {
 
    packageAndShip(sku, qty, done) {
 
        var trackingNumber = 123456789;
 
        //
        // TODO: Command Robots to unshelf
        //
 
        //
        //  TODO: Print Labels
        //
 
        //
        //  TODO: Command Robots to package
        //
 
        //
        //  TODO: Command Robots to leave items at dock
        //
 
        // Create a 1.5 second delay to simulate shipping request
        setTimeout(done.bind(null, trackingNumber), 1500);
 
    }
 
};